<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/content/apply" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.注册码管理}</h1>
    </div>
    <div class="filterbar">
      <form id="search" method="post">
        <label for="">申请ID</label>
        <input type="number" name="id" id="id" value="{$id}" class="input-text">
        <label for="">申请邮箱</label>
        <input type="email" name="email" id="email" value="{$email}" class="input-text">
        <label for="">{$Think.lang.状态}</label>
        <select name="status" id="status">
          <option value="">请选择</option>
          <option value="0" <eq name='status' value='0'>selected</eq>>未审核</option>
          <option value="1" <eq name='status' value='1'>selected</eq>>已通过</option>
          <option value="2" <eq name='status' value='2'>selected</eq>>已拒绝</option>
        </select>
        <button type="submit" class="btn-search" id="J_search" title="{$Think.lang.search}">
          <i class="icon-search"></i>
        </button>
      </form>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:10px">
                <input type="checkbox" class="toggle-all" />
              </th>
              <th>{$Think.lang.申请ID}</th>
              <th style="width:120px">{$Think.lang.用户名}</th>
              <th style="width:150px">{$Think.lang.邮箱}</th>
              <th style="width:100px">{$Think.lang.QQ}</th>
              <th style="">{$Think.lang.申请理由}</th>
              <th style="width:120px">{$Think.lang.时间}</th>
              <th style="width:80px">{$Think.lang.状态}</th>
              <th style="width:80px">{$Think.lang.操作}</th>
            </tr>
          </thead>
          <tbody>
            <volist id="vo" name="data">
              <tr data-id="{$vo.id}">
                <td>
                  <input type="checkbox" class="toggle" />
                </td>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.email}</td>
                <td>{$vo.qq}</td>
                <td>{$vo.reason}</td>
                <td>{$vo.apply_time}</td>
                <td>
                  <if condition="$vo['status'] eq  0">
                    <font style="color: orange;">未审核</font>
                    <elseif condition="$vo['status'] eq 1" />
                    <font style="color: green;">已通过</font>
                    <else />
                    <font style="color: red;">已拒绝</font>
                  </if>
                </td>
                <td>
                  <eq name="vo.status" value="2">
                    <a href="javascript:;" class="A_apply" onclick="doapply(1,'{$vo.id}')">通过</a>
                  </eq>
                  <eq name="vo.status" value="0">
                    <a href="javascript:;" class="A_apply" onclick="doapply(1,'{$vo.id}')">通过</a>
                    <a href="javascript:;" class="A_reject" onclick="doapply(2,'{$vo.id}')">拒绝</a>
                  </eq>

                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
    </div>
    <div class="pager" style="text-align: right">{$page}</div>
    <div class="actions">
      <a href="javascript:;" class="btn" id="J_apply">{$Think.lang.通过}</a>
      <a href="javascript:;" class="btn" id="J_reject">{$Think.lang.拒绝}</a>
    </div>
  </div>
  </div>
</body>

</html>
